﻿using System.Collections;using System.Collections.Generic;using UnityEngine;using Cmd;using System;

public class RadioHttp : HttpServiceBase{    protected override string Url    {        get        {            return "radio/index";        }    }        public void ConnectServer(HttpTask.SucCallbackDelegate success,HttpTask.FailCallbackDelegate fail)    {        HttpTask task = ClassObjPool<HttpTask>.Get();        GetRadioData getRadioData = new GetRadioData();
        getRadioData.id = UserManager.Instance.UserId;        byte[] bytes = Protocol.ProtoBufSerialize<GetRadioData>(getRadioData);        task.SetData(bytes, success, fail);        base.Send(task);    }}